﻿using System;
using System.Windows.Forms;
using Plugins.Engine;

namespace Plugins.Controls
{
    public class PluginWindowStatePropertyConverter : PluginPropertyConverter<FormWindowState>
    {
        public override FormWindowState ConvertFromString(string value)
        {
            return (FormWindowState)Enum.Parse(typeof(FormWindowState), value);
        }
        public override string ConvertToString(FormWindowState value)
        {
            return Enum.GetName(typeof(FormWindowState), value);
        }
    }
}
